home *** CD-ROM | disk | FTP | other *** search
- -- Part of SmallEiffel -- Read DISCLAIMER file -- Copyright (C)
- -- Dominique COLNET and Suzanne COLLIN -- colnet@loria.fr
- --
- class TEST_BIT1
-
- creation {ANY}
- make
-
- feature {ANY}
-
- make is
- local
- b1: BIT 1;
- do
- is_true(b1.count = 0);
- is_true(not b1.item(1));
- b1.put(true,1);
- is_true(b1.item(1));
- b1.put(false,1);
- is_true(not b1.item(1));
- end;
-
- is_true(b: BOOLEAN) is
- do
- cpt := cpt + 1;
- if not b then
- std_output.put_string("TEST_BIT1: ERROR Test # ");
- std_output.put_integer(cpt);
- std_output.put_string("%N");
- else
- std_output.put_string("Yes%N");
- end;
- end;
-
- cpt: INTEGER;
-
- end -- TEST_BIT1
-